#include"util.hpp"
#include"config.hpp"
#include"data.hpp"
#include"hot.hpp"
#include"service.hpp"
vic_cloud::DataManager* _data;


void hottest()
{
    _data=new vic_cloud::DataManager();
    vic_cloud::HotManager hot;
    hot.RunModule();
}

void sertest()
{
    vic_cloud::Service srv;
    srv.RunModule();
}
int main(int argc,char* argv[])
{
    _data=new vic_cloud::DataManager();

    std::thread thread_hot_mg(hottest);
    std::thread thread_service(sertest);
    thread_hot_mg.join();
    thread_service.join();
    return 0;
}